<?php
header( 'Content-Type: text/html; charset=utf-8' );
try {
    define( 'ABSOLUTE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__))) . '/' );
    define( 'PHP_EX', '.php' );
    
    include ABSOLUTE_PATH . 'init' . PHP_EX;
}catch( PHPError $e ) {
    echo '<div>' . $e -> getMessage() . '</div>';
    echo '<div><b>' . str_replace( ABSOLUTE_PATH, '', str_replace('\\', '/', $e -> getFile() ) ) . '</b> in line ' . $e -> getLine() . '</div>';
    exit( 1 );
}catch( FrameException $e ) {
    echo '<div>' . $e -> getMessage() . '</div>';
    $trace = $e -> getTrace();
    echo '<div><b>' . str_replace( ABSOLUTE_PATH, '', str_replace('\\', '/', $trace[ 0 ][ 'file' ] ) ) . '</b> in line ' . $trace[ 0 ][ 'line' ] . '</div>';
}